package com.tarena.lbs.mapper;

import com.tarena.lbs.entity.CouponActivity;
import io.lettuce.core.dynamic.annotation.Param;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CouponActivityMapper {
    CouponActivity getActivityById(Integer id);
    int updateActivityStatus(Integer id, Integer status);
    List<CouponActivity> listActivitiesByUserGroup(@Param("userGroup") String userGroup, @Param("status") Integer status);
}